package io.github.xbeeant.eoffice.model;

import io.github.xbeeant.core.BaseModelObject;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * eoffice_resources
 */
public class Resources extends BaseModelObject<Long> implements Serializable {
    /**
     * 
     * 资源ID
     */
    private Long rid;

    /**
     * 
     * 版本ID
     */
    private Long vid;

    /**
     * 
     * 文件夹ID
     */
    private Long fid;

    /**
     * 
     * 群组ID
     */
    private Long gid;

    /**
     * 
     * 名称
     */
    private String name;

    /**
     * 
     * 类型
     */
    private String type;

    /**
     * 
     * 后缀
     */
    private String ext;

    /**
     * 
     * 大小
     */
    private Long size;

    /**
     * 
     * 是否被删除
     */
    private Boolean deleted;

    /**
     * 
     * 删除时间
     */
    private Date deleteAt;

    /**
     * 
     * 用戶名
     */
    private String username;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table eoffice_resources
     *
     * @mbg.generated Sat Jul 10 16:46:52 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * get field 资源ID
     * @return rid 资源ID
     */
    public Long getRid() {
        return rid;
    }

    /**
     * set filed 资源ID
     * @param rid the value for 资源ID
     */
    public void setRid(Long rid) {
        this.rid = rid;
    }

    /**
     * get field 版本ID
     * @return vid 版本ID
     */
    public Long getVid() {
        return vid;
    }

    /**
     * set filed 版本ID
     * @param vid the value for 版本ID
     */
    public void setVid(Long vid) {
        this.vid = vid;
    }

    /**
     * get field 文件夹ID
     * @return fid 文件夹ID
     */
    public Long getFid() {
        return fid;
    }

    /**
     * set filed 文件夹ID
     * @param fid the value for 文件夹ID
     */
    public void setFid(Long fid) {
        this.fid = fid;
    }

    /**
     * get field 群组ID
     * @return gid 群组ID
     */
    public Long getGid() {
        return gid;
    }

    /**
     * set filed 群组ID
     * @param gid the value for 群组ID
     */
    public void setGid(Long gid) {
        this.gid = gid;
    }

    /**
     * get field 名称
     * @return name 名称
     */
    public String getName() {
        return name;
    }

    /**
     * set filed 名称
     * @param name the value for 名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * get field 类型
     * @return type 类型
     */
    public String getType() {
        return type;
    }

    /**
     * set filed 类型
     * @param type the value for 类型
     */
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    /**
     * get field 后缀
     * @return ext 后缀
     */
    public String getExt() {
        return ext;
    }

    /**
     * set filed 后缀
     * @param ext the value for 后缀
     */
    public void setExt(String ext) {
        this.ext = ext == null ? null : ext.trim();
    }

    /**
     * get field 大小
     * @return size 大小
     */
    public Long getSize() {
        return size;
    }

    /**
     * set filed 大小
     * @param size the value for 大小
     */
    public void setSize(Long size) {
        this.size = size;
    }

    /**
     * get field 是否被删除
     * @return deleted 是否被删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * set filed 是否被删除
     * @param deleted the value for 是否被删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * get field 删除时间
     * @return deleteAt 删除时间
     */
    public Date getDeleteAt() {
        return deleteAt;
    }

    /**
     * set filed 删除时间
     * @param deleteAt the value for 删除时间
     */
    public void setDeleteAt(Date deleteAt) {
        this.deleteAt = deleteAt;
    }

    /**
     * get field 用戶名
     * @return username 用戶名
     */
    public String getUsername() {
        return username;
    }

    /**
     * set filed 用戶名
     * @param username the value for 用戶名
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    @Override
    public Long valueOfKey() {
        return rid;
    }

    @Override
    public void assignKeyValue(Long value) {
        this.rid = value;
    }
}